package com.ciaojian.bytedance.vo.bytedance;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class BytedanceRefundVo implements Serializable {

    /**
     * app_id : xxx
     * open_id : xxxx
     * refund_id : xxxx
     * order_id : xxxx
     * out_order_no : xxx
     * refund_total_amount : 123
     * need_refund_audit : 1
     * refund_audit_deadline : 12313131
     * create_refund_time : 12312313
     * cp_extra : xxxxx
     * refund_item_detail : {"item_order_quantity":1,"item_order_detail":[{"item_order_id":"xxxx","refund_amount":123}]}
     */

    private String app_id;
    private String open_id;
    private String refund_id;
    private String order_id;
    private String out_order_no;
    private int refund_total_amount;
    private int need_refund_audit;
    private int refund_audit_deadline;
    private int create_refund_time;
    private String cp_extra;
    private RefundItemDetailBean refund_item_detail;

    @Data
    public static class RefundItemDetailBean implements Serializable {
        /**
         * item_order_quantity : 1
         * item_order_detail : [{"item_order_id":"xxxx","refund_amount":123}]
         */

        private int item_order_quantity;
        private List<ItemOrderDetailBean> item_order_detail;

        @Data
        public static class ItemOrderDetailBean implements Serializable {
            /**
             * item_order_id : xxxx
             * refund_amount : 123
             */

            private String item_order_id;
            private int refund_amount;
        }
    }
}
